import type { LoginData } from '@/types/login'
import type { LoginResult } from '@/types/member'
import {http} from '@/utils/http'

export const postLoginWxMinApi = (data: LoginData) =>{
    return http({
        method:'POST',
        url:'/login/wxMin',
        data:data
    })
}

export const postLoginWxMinSimpleApi = (phoneNumber:string) =>{
    return http<LoginResult>({
        method:'POST',
        url:'/login/wxMin/simple',
        data:{
            phoneNumber
        }
    })
}